﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000DA3 RID: 3491
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class QuitLineupCsReq : IMessage<QuitLineupCsReq>, IMessage, IEquatable<QuitLineupCsReq>, IDeepCloneable<QuitLineupCsReq>, IBufferMessage
	{
		// Token: 0x17002C58 RID: 11352
		// (get) Token: 0x06009CAF RID: 40111 RVA: 0x001A3627 File Offset: 0x001A1827
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<QuitLineupCsReq> Parser
		{
			get
			{
				return QuitLineupCsReq._parser;
			}
		}

		// Token: 0x17002C59 RID: 11353
		// (get) Token: 0x06009CB0 RID: 40112 RVA: 0x001A362E File Offset: 0x001A182E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return QuitLineupCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002C5A RID: 11354
		// (get) Token: 0x06009CB1 RID: 40113 RVA: 0x001A3640 File Offset: 0x001A1840
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return QuitLineupCsReq.Descriptor;
			}
		}

		// Token: 0x06009CB2 RID: 40114 RVA: 0x001A3647 File Offset: 0x001A1847
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public QuitLineupCsReq()
		{
		}

		// Token: 0x06009CB3 RID: 40115 RVA: 0x001A3650 File Offset: 0x001A1850
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public QuitLineupCsReq(QuitLineupCsReq other) : this()
		{
			this.extraLineupType_ = other.extraLineupType_;
			this.planeId_ = other.planeId_;
			this.avatarType_ = other.avatarType_;
			this.index_ = other.index_;
			this.baseAvatarId_ = other.baseAvatarId_;
			this.isVirtual_ = other.isVirtual_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06009CB4 RID: 40116 RVA: 0x001A36BC File Offset: 0x001A18BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public QuitLineupCsReq Clone()
		{
			return new QuitLineupCsReq(this);
		}

		// Token: 0x17002C5B RID: 11355
		// (get) Token: 0x06009CB5 RID: 40117 RVA: 0x001A36C4 File Offset: 0x001A18C4
		// (set) Token: 0x06009CB6 RID: 40118 RVA: 0x001A36CC File Offset: 0x001A18CC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ExtraLineupType ExtraLineupType
		{
			get
			{
				return this.extraLineupType_;
			}
			set
			{
				this.extraLineupType_ = value;
			}
		}

		// Token: 0x17002C5C RID: 11356
		// (get) Token: 0x06009CB7 RID: 40119 RVA: 0x001A36D5 File Offset: 0x001A18D5
		// (set) Token: 0x06009CB8 RID: 40120 RVA: 0x001A36DD File Offset: 0x001A18DD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint PlaneId
		{
			get
			{
				return this.planeId_;
			}
			set
			{
				this.planeId_ = value;
			}
		}

		// Token: 0x17002C5D RID: 11357
		// (get) Token: 0x06009CB9 RID: 40121 RVA: 0x001A36E6 File Offset: 0x001A18E6
		// (set) Token: 0x06009CBA RID: 40122 RVA: 0x001A36EE File Offset: 0x001A18EE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AvatarType AvatarType
		{
			get
			{
				return this.avatarType_;
			}
			set
			{
				this.avatarType_ = value;
			}
		}

		// Token: 0x17002C5E RID: 11358
		// (get) Token: 0x06009CBB RID: 40123 RVA: 0x001A36F7 File Offset: 0x001A18F7
		// (set) Token: 0x06009CBC RID: 40124 RVA: 0x001A36FF File Offset: 0x001A18FF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Index
		{
			get
			{
				return this.index_;
			}
			set
			{
				this.index_ = value;
			}
		}

		// Token: 0x17002C5F RID: 11359
		// (get) Token: 0x06009CBD RID: 40125 RVA: 0x001A3708 File Offset: 0x001A1908
		// (set) Token: 0x06009CBE RID: 40126 RVA: 0x001A3710 File Offset: 0x001A1910
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint BaseAvatarId
		{
			get
			{
				return this.baseAvatarId_;
			}
			set
			{
				this.baseAvatarId_ = value;
			}
		}

		// Token: 0x17002C60 RID: 11360
		// (get) Token: 0x06009CBF RID: 40127 RVA: 0x001A3719 File Offset: 0x001A1919
		// (set) Token: 0x06009CC0 RID: 40128 RVA: 0x001A3721 File Offset: 0x001A1921
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool IsVirtual
		{
			get
			{
				return this.isVirtual_;
			}
			set
			{
				this.isVirtual_ = value;
			}
		}

		// Token: 0x06009CC1 RID: 40129 RVA: 0x001A372A File Offset: 0x001A192A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as QuitLineupCsReq);
		}

		// Token: 0x06009CC2 RID: 40130 RVA: 0x001A3738 File Offset: 0x001A1938
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(QuitLineupCsReq other)
		{
			return other != null && (other == this || (this.ExtraLineupType == other.ExtraLineupType && this.PlaneId == other.PlaneId && this.AvatarType == other.AvatarType && this.Index == other.Index && this.BaseAvatarId == other.BaseAvatarId && this.IsVirtual == other.IsVirtual && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06009CC3 RID: 40131 RVA: 0x001A37C4 File Offset: 0x001A19C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.ExtraLineupType != ExtraLineupType.LineupNone)
			{
				num ^= this.ExtraLineupType.GetHashCode();
			}
			if (this.PlaneId != 0U)
			{
				num ^= this.PlaneId.GetHashCode();
			}
			if (this.AvatarType != AvatarType.None)
			{
				num ^= this.AvatarType.GetHashCode();
			}
			if (this.Index != 0U)
			{
				num ^= this.Index.GetHashCode();
			}
			if (this.BaseAvatarId != 0U)
			{
				num ^= this.BaseAvatarId.GetHashCode();
			}
			if (this.IsVirtual)
			{
				num ^= this.IsVirtual.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06009CC4 RID: 40132 RVA: 0x001A388D File Offset: 0x001A1A8D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06009CC5 RID: 40133 RVA: 0x001A3895 File Offset: 0x001A1A95
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06009CC6 RID: 40134 RVA: 0x001A38A0 File Offset: 0x001A1AA0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.AvatarType != AvatarType.None)
			{
				output.WriteRawTag(32);
				output.WriteEnum((int)this.AvatarType);
			}
			if (this.PlaneId != 0U)
			{
				output.WriteRawTag(40);
				output.WriteUInt32(this.PlaneId);
			}
			if (this.ExtraLineupType != ExtraLineupType.LineupNone)
			{
				output.WriteRawTag(48);
				output.WriteEnum((int)this.ExtraLineupType);
			}
			if (this.BaseAvatarId != 0U)
			{
				output.WriteRawTag(56);
				output.WriteUInt32(this.BaseAvatarId);
			}
			if (this.IsVirtual)
			{
				output.WriteRawTag(88);
				output.WriteBool(this.IsVirtual);
			}
			if (this.Index != 0U)
			{
				output.WriteRawTag(96);
				output.WriteUInt32(this.Index);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06009CC7 RID: 40135 RVA: 0x001A396C File Offset: 0x001A1B6C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.ExtraLineupType != ExtraLineupType.LineupNone)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.ExtraLineupType);
			}
			if (this.PlaneId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.PlaneId);
			}
			if (this.AvatarType != AvatarType.None)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.AvatarType);
			}
			if (this.Index != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Index);
			}
			if (this.BaseAvatarId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.BaseAvatarId);
			}
			if (this.IsVirtual)
			{
				num += 2;
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06009CC8 RID: 40136 RVA: 0x001A3A18 File Offset: 0x001A1C18
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(QuitLineupCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.ExtraLineupType != ExtraLineupType.LineupNone)
			{
				this.ExtraLineupType = other.ExtraLineupType;
			}
			if (other.PlaneId != 0U)
			{
				this.PlaneId = other.PlaneId;
			}
			if (other.AvatarType != AvatarType.None)
			{
				this.AvatarType = other.AvatarType;
			}
			if (other.Index != 0U)
			{
				this.Index = other.Index;
			}
			if (other.BaseAvatarId != 0U)
			{
				this.BaseAvatarId = other.BaseAvatarId;
			}
			if (other.IsVirtual)
			{
				this.IsVirtual = other.IsVirtual;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06009CC9 RID: 40137 RVA: 0x001A3AB8 File Offset: 0x001A1CB8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06009CCA RID: 40138 RVA: 0x001A3AC4 File Offset: 0x001A1CC4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 48U)
				{
					if (num == 32U)
					{
						this.AvatarType = (AvatarType)input.ReadEnum();
						continue;
					}
					if (num == 40U)
					{
						this.PlaneId = input.ReadUInt32();
						continue;
					}
					if (num == 48U)
					{
						this.ExtraLineupType = (ExtraLineupType)input.ReadEnum();
						continue;
					}
				}
				else
				{
					if (num == 56U)
					{
						this.BaseAvatarId = input.ReadUInt32();
						continue;
					}
					if (num == 88U)
					{
						this.IsVirtual = input.ReadBool();
						continue;
					}
					if (num == 96U)
					{
						this.Index = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04003C82 RID: 15490
		private static readonly MessageParser<QuitLineupCsReq> _parser = new MessageParser<QuitLineupCsReq>(() => new QuitLineupCsReq());

		// Token: 0x04003C83 RID: 15491
		private UnknownFieldSet _unknownFields;

		// Token: 0x04003C84 RID: 15492
		public const int ExtraLineupTypeFieldNumber = 6;

		// Token: 0x04003C85 RID: 15493
		private ExtraLineupType extraLineupType_;

		// Token: 0x04003C86 RID: 15494
		public const int PlaneIdFieldNumber = 5;

		// Token: 0x04003C87 RID: 15495
		private uint planeId_;

		// Token: 0x04003C88 RID: 15496
		public const int AvatarTypeFieldNumber = 4;

		// Token: 0x04003C89 RID: 15497
		private AvatarType avatarType_;

		// Token: 0x04003C8A RID: 15498
		public const int IndexFieldNumber = 12;

		// Token: 0x04003C8B RID: 15499
		private uint index_;

		// Token: 0x04003C8C RID: 15500
		public const int BaseAvatarIdFieldNumber = 7;

		// Token: 0x04003C8D RID: 15501
		private uint baseAvatarId_;

		// Token: 0x04003C8E RID: 15502
		public const int IsVirtualFieldNumber = 11;

		// Token: 0x04003C8F RID: 15503
		private bool isVirtual_;
	}
}
